﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JBeamLibrary.Types
{
    public struct TaggedString
    {
        #region Properties

        public string String { get; set; }

        public object Tag { get; set; }

        #endregion

        #region CTORs

        public TaggedString(string str, object tag)
            : this()
        {
            String = str;
            Tag = tag;
        }

        #endregion

        #region Overrides

        public override string ToString()
        {
            return string.Format("{0} ({1})", String, Tag);
        }

        #endregion
    }
}
